package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.pojo.product.Product;
import com.atguigu.spzx.model.request.product.ProductQueryRequest;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author admin
* @description 针对表【product(商品)】的数据库操作Service
* @createDate 2025-01-09 16:03:49
*/
public interface ProductService extends IService<Product> {

    Page<Product> findPage(Page<Product> page, ProductQueryRequest req);

    void saveProduct(Product product);

    /*
     * @description: 根据id获取商品
     **/
    Product getProductById(Long id);

    void updateProduct(Product product);

    void deleteProductById(Long id);

    void takeonProduct(Long id);

    void takeoffProduct(Long id);

    void auditProduct(Long id, Integer auditStatus);
}
